package com.terracloud.server.common.data.id;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.terracloud.server.common.data.EntityType;

import java.util.UUID;

/**
 *
 * @author chenhainan
 * @since 2025/10/21
 */
public class RoleId extends UUIDBased implements EntityId{
    @Override
    public EntityType getEntityType() {
        return EntityType.ROLE;
    }

     @JsonCreator
    public RoleId(@JsonProperty("id") UUID id) {
        super(id);
    }

    public static RoleId fromString(String strUUID) {
        return new RoleId(UUID.fromString(strUUID));
    }
}
